{include file="public/header"/}
{include file="public/navleft"}
<div class="tpl-content-wrapper" xmlns="http://www.w3.org/1999/html">
<!--    <div class="tpl-content-page-title">
        报告列表
    </div>-->
    <ol class="am-breadcrumb">
        <li><a href="{:url('report/index')}" class="am-icon-home">首页</a></li>
        <li><a href="{:url('report/index')}">报告列表</a></li>
        <li class="am-active">报告查询</li>
    </ol>
    {volist name="data" id = "vo" length='1'}
    <form class="am-form am-form-horizontal" method="post" action="{:url('report/ReportEditinfo')}">

        <div class="am-container" >
            <div class="am-g">

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">送检姓名</label>
                    <div class="am-u-sm-8" >
                        <input type="hidden" class="am-form-field am-radius" name = "yqdh" placeholder="" value="{$vo.yqdh}"/>
                        <input type="text" class="am-form-field am-radius" name = "brxm" placeholder="" value="{$vo.brxm}"/>
                        <input type="hidden" name = "ybid" value="{$vo.ybid}"/>
                    </div>
                </div>
                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">性别</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius"  name = "brxb" placeholder="" value="{$vo.brxb|ShowXB}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >

                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">年龄</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" placeholder=""  name = "brnl"value="{$vo.brnl}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">科室/病区*<font color="green">(产地)</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "khks" placeholder="" value="{$vo.khks}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >

                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">住院号**<font color="green">(规格)</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "brbq" placeholder="" value="{$vo.brbq}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">送检客户</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "byh" placeholder="" value="{$vo.byh}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >

                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">采集时间cjtime</label>
                    <div class="am-u-sm-6" >
                        <input type="text" class="am-form-field am-radius" name = "cjtime" placeholder="" value="{$vo.cjtime}"/>
                    </div>
                    <div class="am-u-sm-2" >
                        <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="report.getYbxxTime()">点击生成时间</button>
                    </div>
                </div>

                <div class="am-u-sm-6" >

                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">标本种类</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "bbzl" placeholder="" value="{$vo.bbzl|GetBbzl|default='血清'}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >


                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">采样时间cyrq</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius"  name = "cyrq" placeholder="" value="{$vo.cyrq}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >

                    <label class="am-u-sm-4 am-form-label" for="doc-ipt-3-1">备注*<font color="green">(采样地点)</font></label>
                    <div class="am-u-sm-8" >
                        <input class="am-form-field am-radius" name="beizhu" placeholder="" type="text"
                               value="{$vo.beizhu}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >


                    <label class="am-u-sm-4 am-form-label" for="doc-ipt-3-1">报告时间bgrq</label>
                    <div class="am-u-sm-8" >
                        <input class="am-form-field am-radius" name="bgrq" placeholder="" type="text"
                               value="{$vo.bgrq}"/>
                    </div>
                </div>
                <div class="am-u-sm-6" >


                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">身份证* <font color="green">(生产批号)</font></label>
                    <div class="am-u-sm-6" >
                        <input type="text" class="am-form-field am-radius"  name = "idnumber" placeholder=""value="{$vo.idnumber}" />
                    </div>
                    <div class="am-u-sm-2" >
                        <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="report.getInfoByidnumber()">点击生成信息</button>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">医院条码</label>
                    <div class="am-u-sm-8" style="padding-right: 0">
                        <input type="text" class="am-form-field am-radius" name = "yytm" placeholder=""value="{$vo.yytm}" />
                    </div>
                </div>

                <div class="am-u-sm-6" >


                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">检验者</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius"  name = "jyys" placeholder=""  value="{$vo.jyys}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">审核者</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius"  name = "shys" placeholder="" value="{$vo.shys}" />
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">xmstring</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "xmstring" placeholder=""value="{$vo.xmstring}" />
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">审核者</label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius"  name = "111" placeholder="" />
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">床号*<font color="green">(生产日期)</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "brch" placeholder="" value="{$vo.brch}"/>
                    </div>
                </div>



                

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">jymd 检验目的</label>
                     <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "jymd" placeholder="" value="{$vo.jymd}"/>
                    </div>


                </div>




                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">Jymddm </label>
                    <div class="am-u-sm-8" >
                        <!-- <input type="text" class="am-form-field am-radius" name = "jymddm" placeholder="" value="{$vo.jymddm}"/> -->
                        <select  data-am-selected="{searchBox: 1,btnWidth: '100%',maxHeight: 180,btnStyle: 'secondary',}"
                                    name="jymddm">
                                    <option value="{$vo.jymddm}">{$vo.jymddm}</option>

                                    {volist name='jymdac' id='v'}
                                    <option value=",{$v.jymddh},">,{$v.jymddh},----{$v.jymdmc}</option>
                                    {/volist}
                                </select> 
                    </div>
                </div>





                <div class="am-u-sm-6">
                    <label class="am-u-sm-4 am-form-label" for="doc-ipt-3-1">Ybzt</label>
                    <div class="am-u-sm-8">
                        <input class="am-form-field am-radius" name="ybzt" placeholder="" type="text"
                               value="{$vo.ybzt}"/>
                    </div>
                </div>


                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label"><font color="green">临床诊断*(工厂注册号)</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "lczd" placeholder="" value="{$vo.lczd}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">送检医师<font color="green">*检疫证号</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "sjys" placeholder="" value="{$vo.sjys}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">病人电话*<font color="green",font-size="3">(集装箱/柜号)</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "brphone" placeholder="" value="{$vo.brphone}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">Yydm<font color="green">*对接回传</font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "yydm" placeholder="" value="{$vo.yydm}"/>
                    </div>
                </div>

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">上传标识**(快检康)<font color="green"></font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "sendflag" placeholder="" value="{$vo.sendflag}"/>
                    </div>
                </div>

<!--                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">上传标识defstr3<font color="green"></font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" name = "defstr3" placeholder="" value="{$vo.defstr3}"/>
                    </div>
                </div>-->

                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">自动上传标识(核酸)<font color="green"></font></label>
                    <div class="am-u-sm-8" >
                        <input type="text" class="am-form-field am-radius" disabled="disabled" name = "ResultDesc"
                               placeholder="确认修改后默认自动重新上传-null" value="修改后会自动重新上传 当前标识:{$vo.ResultDesc}"/>
                    </div>
                </div>


                <div class="am-u-sm-6" >
                    <label for="doc-ipt-3-1" class="am-u-sm-4 am-form-label">是否上传<font color="green"></font></label>
                    <div class="am-u-sm-8">
                        <button type="button" class="layui-btn layui-btn-normal"  onclick="popup()">点击查看上传详情</button>
                    </div>
                </div>

                <div class="am-u-sm-11"> <br></div>
                <div class="am-u-sm-11">
               <button type="submit" class="am-btn am-btn-primary am-btn-block">确认修改/重新生成/上传</button>
                </div>
        </div>
    </form>
    {/volist}





    {include file="public/footer"/}


    <script>
        function popup(result) {
            layui.use('table', function () {
                var yytm = $('input[name="yytm"]').val();
                var ybid = $('input[name="ybid"]').val();
                var table = layui.table;
                layer.open({
                    type: 1,
                    area: ["759px", '515px'],
                    title: "新冠数据上传详情",
                    maxmin: false,
                    content: '<div><table id="templateTable" lay-filter="templateTable"></table></div>', //先定义一个数据表格的div框
                    success: function (index, layero) {
                        table.render({
                            elem: '#templateTable'
                            , height: 392
                            , width: '727'
                            ,url: '/index.php/index/report/IsUploadSars/' //数据接口
                            , where: {ybid: ybid, yytm: yytm}
                            , request: {
                                ybid: 'ybid', //页码的参数名称，默认：page
                                yytm: 'yytm' //每页数据量的参数名，默认：limit
                            }
                            , cols: [[ //设置数据表格表头

                                ,{field: 'id', title: '文件名称', width: 685, hide: true}
                                ,{field:'ybid', width: 128, title: '千麦或大筛条码'}
                                ,{field:'brxm', width: 74, title: '姓名'}
                                ,{field:'idnumber', width: 169, title: '身份证 '}
                                ,{field:'sendlog', width: 165, title: '上传日志'}
                                ,{field:'sendtime', width: 184, title: '上传时间'}
                            ]]

                        });
                        table.on('checkbox(templateTable)', function (obj) { //监听复选框,获取选择到的值
                            obj_data = obj.data; //获取到选中复选框上的一行数据
                            let path=obj_data.path; //获取某个字段的值

                            console.log(path);

                        })
                    },
                    btn: ['确定', '关闭'],
                });
            });

        }
    </script>
